import request from '@/axios'

function formatRequestUri(name) {
  return 'flow/app/power/' + name
}

export function Set(data) {
  return request.post({
    url: formatRequestUri('Set'),
    data
  })
}

export function Get(appId) {
  return request.get({
    url: formatRequestUri('Get'),
    params: {
      appId
    }
  })
}

export function Delete(appId) {
  return request.get({
    url: formatRequestUri('Delete'),
    params: {
      appId
    }
  })
}
